xen: implement an signed 64 bit division helper function
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 23 Jan 2012 09:40:35 +0000 (09:40 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 23 Jan 2012 09:40:35 +0000 (09:40 +0000)
commit02a59232513240899da538380010accf3d24f687
tree835f67c84a8682a99bbf6c46e8479c512e74bbed
parentd4acf6380cbeebb1a90bde55ea36a6230a3116e9
xen: implement an signed 64 bit division helper function

Implement a C function to perform 64 bit signed division and return
both quotient and remainder.
Useful as an helper function to implement __aeabi_ldivmod.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/common/lib.c